package com.gzwh.v1.sysapi.dao.dinner;

import com.gzwh.v1.sysapi.entity.dinner.AskType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface AskTypeMapper {

    int insertAskType(AskType askType);

    @Select("Select * from dinner_ask_type where app_id=#{appid} and is_delete=0")
    List<AskType> getAskType(@Param("appid") Long appid);

    @Update("Update dinner_ask_type set is_delete=1")
    int deleteAskType(@Param("appid") Long appid);


}
